<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app ()->request->baseUrl; ?>/css/menu/fixedMenu_style1.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app ()->request->baseUrl; ?>/css/menu/fancybox/jquery.fancybox-1.3.4.css" />

  

<?php 

$cs = Yii::app ()->getClientScript (); 
$cs = Yii::app ()->getClientScript()->registerCoreScript ('jquery'); 
$cs->registerScriptFile(Yii::app ()->request->baseUrl. "/js/menu/jquery.fixedMenu.js");
$cs->registerScriptFile(Yii::app ()->request->baseUrl. "/js/fancybox/jquery.fancybox-1.3.4.js");
$cs->registerScriptFile(Yii::app ()->request->baseUrl. "/js/fancybox/jquery.mousewheel-3.0.4.pack.js");
?>

<title>dddd</title> 
</head>

<body id='page'>
  <script>
    $('document').ready(function(){
            $('.menu').fixedMenu();
            
      $(".menupop").fancybox({
        'width'       : '75%',
        'height'      : '75%',
        'autoScale'     : false,
        'transitionIn'    : 'none',
        'transitionOut'   : 'none',
        'type'        : 'iframe'
      });
        });
        
</script>
        
  <div id='wrap'>
    <div id='header'>
      <div class="menu">

        <ul>
      <?php $wgGoodsType = WgGoodsType::model ()->findAllObject();
       if($wgGoodsType){
       foreach ($wgGoodsType as $t)
        {
    ?>
            <li>
                <a href="#"><?php echo $t->typeName?><span class="arrow"></span></a>
                
                <ul>
                  <?php foreach($t->sonTypes as $s){?>
                    <li><a class="menupop" href="http://www.sohu.com"><?php echo $s['typeName']?></a></li>
                    <?php }?>
                </ul>
            </li>
            <?php }}?>
        </ul>
    </div>
    </div>
    <div id='content-holder'>
              <?php
          echo $content;
      ?>
    </div>
  
  </div>
  
  
</body>
</html>